﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Utils.S7Help
{
    /// <summary>
    /// DB块字段属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class S7PropertyAttribute:Attribute
    {
        /// <summary>
        /// 起点地址
        /// </summary>
        public int StartByteAdr;

        /// <summary>
        /// 偏移量
        /// </summary>
        public byte BitAdr;
    }
    
    /// <summary>
    /// 喷涂的DB块的地址
    /// </summary>
    [AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false)]
    public class SprayingDBAttribute : Attribute
    {
        /// <summary>
        /// 数据块地址
        /// </summary>
        public int DB;
    }
}
